package com.snbc.TestDemo;

/**
 * @Classname Jiecheng
 * @Description TODO
 * @Date 2019/9/17 22:43
 * @Created by Acer
 */
public class Jiecheng {

    public static void main(String[] args) {
        int i = 10;
        int result = 1;
        while (i >= 1) {
            result *= i;
            i--;
        }
        System.out.println(result);
/*        int result = 1;
        for (int j = 1; j <= 10; j++) {
            result = result * j;
        }

        System.out.println(result);
    }*/
    }
}